package com.example.dataimport.service;

import com.example.dataimport.dao.ColumnMappingDao;
import com.example.dataimport.model.ColumnMappingBO;
import com.example.dataimport.model.TableMappingBO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ColumnMappingService {

    @Autowired
    ColumnMappingDao columnMappingDao;

    public List<TableMappingBO> getTableByID(String id){
        return columnMappingDao.getTableByID(id);
    }

   public List<TableMappingBO> getAllTables(){
        return columnMappingDao.getAllTables();
    }

    public List<ColumnMappingBO> getColumnMappingByTableID(String table_id){
        return columnMappingDao.getColumnMappingByTableID(table_id);
    }
}
